package ming.model.type;

import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.apache.commons.lang.StringUtils;


@SuppressWarnings("serial")
@Entity
@Table(name = "t_tobacco_sms_template")
public class SmsTemplate implements java.io.Serializable {

	// Fields

	private String id;
	private String templateTitle;
	private String templateContent;
	private String templateState;
	


	// Property accessors
	@Id
	@Column(name = "vcID", unique = true, nullable = false, length = 36)
	public String getId() {
		if (!StringUtils.isBlank(this.id)) {
			return this.id;
		}
		return UUID.randomUUID().toString();
	}

	public void setId(String id) {
		this.id = id;
	}


	@Column(name = "templateTitle", length = 200)
	public String getTemplateTitle() {
		return templateTitle;
	}

	public void setTemplateTitle(String templateTitle) {
		this.templateTitle = templateTitle;
	}

	@Column(name = "templateContent", length = 4000)
	public String getTemplateContent() {
		return templateContent;
	}

	public void setTemplateContent(String templateContent) {
		this.templateContent = templateContent;
	}

	@Column(name = "templateState", length = 3)
	public String getTemplateState() {
		return templateState;
	}

	public void setTemplateState(String templateState) {
		this.templateState = templateState;
	}



}